// Created by zyq on 2025/3/1.

#include "iostream"

using namespace std;

int main() {
    int num = 10;

    // int *p;
    // p = &num;

    int *p = &num;

    int* a = p;
    *a = 10;

    cout << "num = " << num << endl;
    cout << "&num = " << &num << endl;
    cout << "p = " << p << endl;
    cout << "*p = " << *p << endl;
    return 0;
}